﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SchoolSet
{
    public class Student : Human, ICommentable
    {
        private int studNumber;
        private List<string> comments ;

        public int StudNumber
        {
            get { return this.studNumber; }
        }

        public string[] Comments
        {
            get
            {
                return this.comments.ToArray();
            }
        }


        public Student(string Name, int studNumber)
            : base(Name)
        {
            this.studNumber = studNumber;
            this.comments = new List<string>();
        }


        public void AddComment(string comment)
        {
            this.comments.Add(comment);
        }
    }
}
